package com.ruoyi.exam_candidate.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.exam_candidate.mapper.TbExamCandidateMapper;
import com.ruoyi.exam_candidate.domain.TbExamCandidate;
import com.ruoyi.exam_candidate.service.ITbExamCandidateService;

/**
 * 考生信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class TbExamCandidateServiceImpl implements ITbExamCandidateService 
{
    @Autowired
    private TbExamCandidateMapper tbExamCandidateMapper;

    /**
     * 查询考生信息
     * 
     * @param id 考生信息主键
     * @return 考生信息
     */
    @Override
    public TbExamCandidate selectTbExamCandidateById(Long id)
    {
        return tbExamCandidateMapper.selectTbExamCandidateById(id);
    }

    /**
     * 查询考生信息列表
     * 
     * @param tbExamCandidate 考生信息
     * @return 考生信息
     */
    @Override
    public List<TbExamCandidate> selectTbExamCandidateList(TbExamCandidate tbExamCandidate)
    {
        return tbExamCandidateMapper.selectTbExamCandidateList(tbExamCandidate);
    }

    /**
     * 新增考生信息
     * 
     * @param tbExamCandidate 考生信息
     * @return 结果
     */
    @Override
    public int insertTbExamCandidate(TbExamCandidate tbExamCandidate)
    {
        return tbExamCandidateMapper.insertTbExamCandidate(tbExamCandidate);
    }

    /**
     * 修改考生信息
     * 
     * @param tbExamCandidate 考生信息
     * @return 结果
     */
    @Override
    public int updateTbExamCandidate(TbExamCandidate tbExamCandidate)
    {
        return tbExamCandidateMapper.updateTbExamCandidate(tbExamCandidate);
    }

    /**
     * 批量删除考生信息
     * 
     * @param ids 需要删除的考生信息主键
     * @return 结果
     */
    @Override
    public int deleteTbExamCandidateByIds(Long[] ids)
    {
        return tbExamCandidateMapper.deleteTbExamCandidateByIds(ids);
    }

    /**
     * 删除考生信息信息
     * 
     * @param id 考生信息主键
     * @return 结果
     */
    @Override
    public int deleteTbExamCandidateById(Long id)
    {
        return tbExamCandidateMapper.deleteTbExamCandidateById(id);
    }
}
